#include  <stdio.h>
main()
{	   	   
    int  score[30], temp;
    int  i, j;
    
    printf("Please enter scores:\n");
    for (i = 0; i < 30; i++)
    {	   	   
        scanf("%d", &score[i]);
    }
    for (i = 0; i < 29; i++)
    {	   	   
        for (j = i + 1; j < 30; j++)
        {	   	   
            if (score[j] > score[i])
            {	   	   
                temp = score[j];
                score[j] = score[i];
                score[i] = temp;
            }
        }
    }
    printf("Sorted results:\n");
    for (i = 0; i < 30; i++)
    {	   	   
        printf("%d\n", score[i]);
    }
}